﻿@model IEnumerable<asMeishi.web.Models.user>
@using asMeishi.web.Models
@using publicLibrary

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>
<div>@TempData["info"]</div>
<p>
    @Html.ActionLink("新建用户", "Edit")
</p>
<table>
    <tr>

        <th>
            name
        </th>
        <th>
            email
        </th>
        <th>
            password
        </th>
        <th>
            sex
        </th>
        <th>
            birth
        </th>
        <th>
            QQ
        </th>
        <th>
            msn
        </th>
        <th>
            experience
        </th>
        <th>
            laterDate
        </th>
        <th>
            regDate
        </th>
        <th>
            limit
        </th>
        <th>
            group
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>

        <td>
            @item.name
        </td>
        <td>
            @item.email
        </td>
        <td>
            @item.password
        </td>
        <td>
            @dictClass.get("性别").tryValue(item.sex,"")
        </td>
        <td>
            @String.Format("{0:g}", item.birth)
        </td>
        <td>
            @item.QQ
        </td>
        <td>
            @item.msn
        </td>
        <td>
            @item.experience
        </td>
        <td>
            @String.Format("{0:g}", item.laterDate)
        </td>
        <td>
            @String.Format("{0:g}", item.regDate)
        </td>
        <td>
            @item.limit
        </td>
        <td>
            @item.group
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |

            @Html.ActionLink("Delete", "Delete", new { id = item.Id })
        </td>
    </tr>
}

</table>

